package controleur;

import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JTextField;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;

import modele.Contact;
import modele.InfoThread;

public class InfoListener implements ListSelectionListener {

	private InfoThread infoth;

	public InfoListener(JTextField t1, JTextField t2, JTextField t3,
			JTextField t4, JTextField t5, JTextField t6, JTextField t7,
			JTextField t8, JComboBox cbGroup, JList list, JLabel lblphoto) {
		infoth = new InfoThread(t1, t2, t3, t4, t5, t6, t7, t8, list, cbGroup,
				lblphoto);
	}

	@Override
	public void valueChanged(ListSelectionEvent e) {
		Thread th = new Thread(infoth);
		th.start();
	}
}
